package com.av.bcacc.javaapi.thread.reentrantlock;

import com.av.bcacc.javaapi.thread.ticket.TicketLockRunnable;

public class ReentrantLockTest {
    public static void main(String[] args) {
        ReentrantLockRunnable ticketRunnable=new ReentrantLockRunnable();
        Thread thread1=new Thread(ticketRunnable,"1号线程");
        Thread thread2=new Thread(ticketRunnable,"2号线程");
        Thread thread3=new Thread(ticketRunnable,"3号线程");
        thread1.start();
        thread2.start();
        thread3.start();
    }
}
